package com.cskaoyan.search.form;

import com.cskaoyan.mall.commons.result.AbstractRequest;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class SearchRequest extends AbstractRequest {

    @NotNull
    private String key;
    @NotNull
    private Integer page;
    @NotNull
    private Integer size;
    private String sort;
    private Integer priceGt;
    private Integer priceLte;


    @Override
    public String toString() {
        return "SearchRequest{" +
                "keyword='" + key + '\'' +
                ", page=" + page +
                ", pageSize=" + size +
                '}';
    }

    @Override
    public void requestCheck() {

    }
}
